package cn.codinglives.ssoplus.saml;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.security.core.userdetails.User;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * saml user info.
 * @author feihu.wang
 *
 */
@Getter
@Setter
@ToString
public class SamlUser implements Serializable {
    private String userId;
    private String userName;
    private String tenantCode;
    private Map<String,Object> additionalProps = new HashMap<>();

    public SamlUser() {

    }

    public SamlUser(String userId, String userName, String tenantCode) {
        this.userId = userId;
        this.userName = userName;
        this.tenantCode = tenantCode;
    }
}
